package com.zhengsanming.mapper;

import com.zhengsanming.pojo.Brand;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper {
    List<Brand> selectAll();

    //    添加
    void add(Brand brand);

    //根据ID查数据
    @Select("select * from tb_brand where id =#{id};")
    @ResultMap("brandResultap")
    Brand selectByIdBrand(int id);
  //修改数据
    void  update(Brand brand);
}
